<!DOCTYPE html>
<html>
<head>
<title>Mobile</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1", maximum-scale=1 />
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
	<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
	<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>
	<div data-role="page" data-theme="a" data-content-theme="b" data-position="fixed">
		<div data-role="header">
        	<a href="login.php" data-theme="b" data-transition="slidedown">Login</a>
        	<h2 role="heading" aria-level="1">Forside</h2>
            <a href="cart.php" data-theme="b" data-icon="grid" data-iconpos="right" data-transition="slidedown">Borrows</a>
        </div> 
        <div>
        	<center>
            <br><br>
        	
            <br><br>
			<a href="test/ListVG.php" data-role="button" data-transition="slidefade">Gå til varegrupper</a>
            <?php 
			if(stristr($_SERVER['HTTP_USER_AGENT'],'iPhone') || stristr($_SERVER['HTTP_USER_AGENT'],'iPad')) {
				// iPhone eller iPad
 				 echo '<a href="zxing://scan" data-role="button">Skan QR-kode [iPhone]</a>';
			} else if (stristr($_SERVER['HTTP_USER_AGENT'],'Android')){
				// Android smartphone og Android tablet
				echo '<a href="http://zxing.appspot.com/scan" data-role="button">Skan QR-kode [Android]</a>';
			} else {
				echo '<a href="http://zxing.appspot.com/scan" data-role="button">Skan QR-kode [Ikke Andr./iOS]</a>';
			}
			?>
            <a href="about.php" data-role="button" data-transition="slidefade">Om os</a>
            </center>
       	</div>
        <div  data-role="footer" data-position="fixed"> 
			<h4 style="font-size:12px;color:#006699;">© Copyright  <?php echo date('Y'); ?></h4>
		</div> 
	</div>
</body>
</html>